package com.renjiyue.dao;
//代理角色：中介
public class Proxy implements Rent{
    private Host host;
    public Proxy(){}

    public Proxy(Host host) {
        this.host = host;
    }
    //租房
    @Override
    public void rent() {
        seeHonse();
        host.rent();
        fare();
    }
    //看房
    public void seeHonse(){
        System.out.println("带着客户去看房");
    }
    //收中介费
    public void fare(){
        System.out.println("收中介费");
    }
}
